namespace UniversalAdminSystem.Domian.Core.ValueObjects;

public record ChunkId
{
    public Guid Value { get; init; }
    private ChunkId(Guid value)
    {
        if (Guid.Empty == value)
        {
            throw new ArgumentException("ChunkId不能为空");
        }

        Value = value;
    }

    public static ChunkId Create(Guid Id) => new(Id);

    public static explicit operator ChunkId(Guid value) => Create(value);
    public static implicit operator Guid(ChunkId Id) => Id.Value;
}